package com.eiisan.base.constant;

/**
 * @Description: 系统全局常量<br>
 * 每一种用途都建立自己的内部类,在里面进行管理.<br>
 * @Author gragonfly
 * @Date 2019/6/27
 **/
public class GlobalConstant {
    /**
     * 系统常量
     */
    public static final class Sys {
        private Sys() {
        }

        /**
         * 全局用户名
         */
        public static final String TOKEN_AUTH_DTO = "CURRENT_USER_DTO";

        /**
         * redis key default expire = 30MINUTES
         */
        public static final long REDIS_DEFAULT_EXPIRE = 30L;
    }
    /**
     * 用户相关常量
     */
    public static final class User {
        private User() {
        }

        /**
         * 微信注册码redis_key
         */
        public static final String LOGIN_KEY = "user_login_key";
    }


    /**
     * 微信相关常量
     */
    public static final class WeiXin {
        private WeiXin() {
        }

        /**
         * 微信注册码redis_key
         */
        public static final String REGISTER_CODE_KEY = "weixin_register_code_key";

        /**
         * 微信注册码redis_key expire = 3MINUTES
         */
        public static final long REGISTER_CODE_EXPIRE = 3L;
    }
}
